package com.csyf.manager.entity;

import java.util.List;

/**
 * @Author: casper
 * @Description: 数据库表
 * @Date: Created in 2018/12/12 17:02
 */
public class GenTableInfo {

    private static final long serialVersionUID = 1L;

    /** 表名称 */
    private String tableName;

    /** 表描述 */
    private String tableComment;

    /** 表的主键列信息 */
    private GenColumnInfo primaryKey;

    /** 表的列名(不包含主键) */
    private List<GenColumnInfo> columns;

    /** 类名(第一个字母大写) */
    private String className;

    /** 类名(第一个字母小写) */
    private String classname;

    public String getTableName()
    {
        return tableName;
    }

    public void setTableName(String tableName)
    {
        this.tableName = tableName;
    }

    public String getTableComment()
    {
        return tableComment;
    }

    public void setTableComment(String tableComment)
    {
        this.tableComment = tableComment;
    }

    public List<GenColumnInfo> getColumns()
    {
        return columns;
    }

    public GenColumnInfo getColumnsLast()
    {
        GenColumnInfo columnInfo = null;
        if (null != columns && columns.size() > 0)
        {
            columnInfo = columns.get(0);
        }
        return columnInfo;
    }

    public void setColumns(List<GenColumnInfo> columns)
    {
        this.columns = columns;
    }

    public String getClassName()
    {
        return className;
    }

    public void setClassName(String className)
    {
        this.className = className;
    }

    public String getClassname()
    {
        return classname;
    }

    public void setClassname(String classname)
    {
        this.classname = classname;
    }

    public GenColumnInfo getPrimaryKey()
    {
        return primaryKey;
    }

    public void setPrimaryKey(GenColumnInfo primaryKey)
    {
        this.primaryKey = primaryKey;
    }

}
